﻿<%@ Page Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="FireForce.aspx.cs" Inherits="BasicBase_KeyUnit_FireForce" Title="无标题页"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>
            <asp:HyperLink ID="hlReturn" runat="server"></asp:HyperLink></li>
    </ul>
    <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" AutoPostBack="True">
        <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
            <ContentTemplate>
                <div style="height: 450px">
                    <table class="intable" cellpadding="0" cellspacing="0" width="100%">
                        <caption>
                            <span>消防力量添加</span>
                        </caption>
                        <tr>
                            <td style="width: 17%">
                                重点单位：
                            </td>
                            <td style="width: 32%">
                                <asp:Label ID="lblKeyUnitName" runat="server"></asp:Label>
                            </td>
                            <td style="width: 17%">
                                义务消防队员人数 ：
                            </td>
                            <td style="width: 32%">
                                <asp:TextBox ID="txtPrivateFireMen" runat="server"></asp:TextBox>人
                                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server"
                                    Enabled="True" FilterType="Numbers" TargetControlID="txtPrivateFireMen">
                                </ajaxToolkit:FilteredTextBoxExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                专职消防队员人数：
                            </td>
                            <td>
                                <asp:TextBox ID="txtFullTimeFireMen" runat="server"></asp:TextBox>
                                人
                                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                                    Enabled="True" FilterType="Numbers" TargetControlID="txtFullTimeFireMen">
                                </ajaxToolkit:FilteredTextBoxExtender>
                            </td>
                            <td>
                                值班形式：
                            </td>
                            <td>
                                <asp:TextBox ID="txtDutyType" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                消防控制室位置：
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtCommandCenter" runat="server" Width="530"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                其他组织情况：
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtOthers" runat="server" Width="530"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td colspan="3">
                                <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <asp:Label ID="lblInfo" runat="server" ForeColor="#FF8000"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
            <HeaderTemplate>
                消防力量
            </HeaderTemplate>
        </ajaxToolkit:TabPanel>
        <ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
            <ContentTemplate>
                <div style="height: 450px">
                    <table class="intable" cellpadding="0" cellspacing="0" width="100%">
                        <caption>
                            <span>消防车辆添加</span>
                        </caption>
                        <tr>
                            <td style="width: 10%">
                                车辆类型：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlPumperType" runat="server">
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlPumper" runat="server">
                                </asp:DropDownList>
                                <ajaxToolkit:CascadingDropDown ID="CascadingDropDown3" runat="server" Category="PumperType"
                                    LoadingText="[加载类别...]" PromptText="选择类别" ServiceMethod="GetPumperDictionary"
                                    ServicePath="../../services/TypeDictionaryServices.asmx" TargetControlID="ddlPumperType"
                                    Enabled="True">
                                </ajaxToolkit:CascadingDropDown>
                                <ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server" Category="Pumper"
                                    LoadingText="[加载车辆...]" ParentControlID="ddlPumperType" PromptText="选择车辆" ServiceMethod="GetDictionaryByParentID"
                                    ServicePath="../../services/TypeDictionaryServices.asmx" TargetControlID="ddlPumper"
                                    Enabled="True">
                                </ajaxToolkit:CascadingDropDown>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                车辆参数：
                            </td>
                            <td>
                                载水<asp:TextBox ID="txtWater" runat="server" Width="42px"></asp:TextBox>吨 载泡沫<asp:TextBox
                                    ID="txtFoam" runat="server" Width="35px"></asp:TextBox>吨&nbsp; 载干粉<asp:TextBox ID="txtDryPower"
                                        runat="server" Width="36px"></asp:TextBox>吨<ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender3"
                                            runat="server" Enabled="True" FilterType="Custom, Numbers" TargetControlID="txtWater"
                                            ValidChars=".">
                                        </ajaxToolkit:FilteredTextBoxExtender>
                                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
                                    Enabled="True" FilterType="Custom, Numbers" TargetControlID="txtFoam" ValidChars=".">
                                </ajaxToolkit:FilteredTextBoxExtender>
                                <ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server" Enabled="True" FilterType="Custom, Numbers"
                                    TargetControlID="txtDryPower" ValidChars=".">
                                </ajaxToolkit:FilteredTextBoxExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="btnInsert" runat="server" Text="添加消防车辆" OnClick="btnInsert_Click" />
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                    <ProgressTemplate>
                                        正在加载...
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                            </td>
                        </tr>
                    </table>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:Label ID="lblInfo2" runat="server" ForeColor="#FF8000"></asp:Label>
                            <asp:GridView ID="gvFFVehicle" runat="server" AutoGenerateColumns="False" AllowPaging="true"
                                PageSize="8" Caption="<span>消防车辆列表</span>" DataKeyNames="VehicleID" OnRowDeleting="gvFFVehicle_RowDeleting"
                                OnRowDataBound="gvFFVehicle_RowDataBound">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblID"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="5%" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="VehicleName" HeaderText="车辆类型" />
                                    <asp:BoundField DataField="Water" HeaderText="载水" />
                                    <asp:BoundField DataField="Foam" HeaderText="载泡沫" />
                                    <asp:BoundField DataField="DryPowder" HeaderText="载干粉" />
                                    <asp:TemplateField ShowHeader="False">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                Text="<img src='../../Images/Delete.gif' alt='删除'/>" OnClientClick="if (confirm('您确实要删除此消防车辆吗?') == false) return false;"></asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Right" Width="5%" />
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                                <PagerTemplate>
                                </PagerTemplate>
                            </asp:GridView>
                            <uc1:ListPageContral ID="ListPageContral1" runat="server" OnPageSizeChange="ListPageContral1_PageSizeChange"
                                PageSize="8" />
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnInsert" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </ContentTemplate>
            <HeaderTemplate>
                消防车辆
            </HeaderTemplate>
        </ajaxToolkit:TabPanel>
    </ajaxToolkit:TabContainer>
</asp:Content>
